package com.alan.product.issue.util;

public class LockUtil {
    public static void lock(String lockName, Runnable command) {
        // 使用redis或zookeeper分布式锁
        // redisLock.lock(lockName);
        try {
            command.run();
        } finally {
            // redisLock.unlock(lockName);
        }
    }
}
